import java.util.Scanner;
public class Main {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        System.out.println("请输入运算式:");
        String s = in.nextLine();
        String s2 = MyBC.getrp(s);
        System.out.println("转换为后缀表达式:"+s2);
        System.out.println(MyDC.calrp(s2));
    }
}